<?php

namespace Caifenglei\AuthRbac\Models;

use Spatie\Permission\Models\Permission as BasePermission;

class Permission extends BasePermission
{
    const TYPE_PAGE = 1;
    const TYPE_MENU = 2;
    const TYPE_BUTTON = 3;
    const TYPE_FIELD = 4;

    const NAME_SEPARATOR = '.';

    protected $hidden = ['pivot'];

    protected $casts = [
        'updated_at' => 'datetime:Y-m-d H:i:s',
        'created_at' => 'datetime:Y-m-d H:i:s',
    ];

}
